/*
 * @Author: C.
 * @Date: 2021-07-12 19:45:54
 * @LastEditTime: 2021-08-30 17:32:29
 * @Description: file content
 */
import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
// import { t } from '/@/hooks/web/useI18n';

const print: AppRouteModule = {
  path: '/print',
  name: 'print',
  component: LAYOUT,
  redirect: '/print/editor',
  meta: {
    orderNo: 1,
    icon: 'ion:grid-outline',
    title: '打印',
  },
  children: [
    {
      path: 'editor',
      name: 'editor',
      component: () => import('/@/views/print/src/views/Editor/index.vue'),
      meta: {
        affix: true,
        title: '打印编辑器',
      },
    },
    {
      path: 'viewer',
      name: 'viewer',
      component: () => import('/@/views/print/src/views/Viewer/index.vue'),
      meta: {
        affix: true,
        title: '打印预览',
      },
    }
  ],
};

export default print;
